package com.chenliang.dao;

import com.chenliang.domain.SysLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ProjectName: mavenSSM
 * @Package: com.chenliang.dao
 * 作用：
 */
public interface ISysLogDao {
    @Select("select * from syslog")
    @Results(value = {
            @Result(id = true,property = "id",column = "id")
    })
    List<SysLog> findAll();


@Insert("insert into syslog(visitTime,username,ip,url,executionTime,method) values(#{visitTime},#{username},#{ip},#{url},#{executionTime},#{method})")
    void saveSysLog(SysLog sysLog);
}
